using System.Configuration;

namespace Rioshu.Web.ViewStateHandlers.SQLitePersister
{
    public class SqlitePersisterConfiguration : OutOfPagePersisterConfigurationHandler
    {
        [ConfigurationProperty("fileName", IsRequired = true)]
        public string DatabaseFileName { get { return this["fileName"].ToString(); } }

        public static SqlitePersisterConfiguration GetConfiguration()
        {
            return ConfigurationManager.GetSection("viewStateHandlers/sqlitePersister") as SqlitePersisterConfiguration;
        }
    }
}